#include <iostream>
#include "ticket.hpp"

#define THE_PRICE 48

using namespace std;

int main(int argc, char* argv[]){
    string age;

    cout << "输入游客年龄(按照 年 月 日 顺序输入): " << endl;
    cout << "eg: xx年xx月xx日" << endl;
    cin >> age;

    int price = ExtractNumber(age);
    if(!Check_flag){
        cout << " " << endl;
        cout << "输入有误, 程序退出" << endl;
        return 0;
    }

    cout << "您最后的票价是" << price << "元" << endl;
    return 0;
}